import { makeAutoObservable } from "mobx";
import * as HomeApi from "../api/Home";
class Store{
    
    constructor() {
        makeAutoObservable(this);
    }
    home = [];
    *updatehome() {
        // 发请求
        const res = yield HomeApi.getHome();
        this.home = res;
    }
}
export default new Store();
